package JVM.chapter02;

public class SynchronizedTest {

    public static int a = 1;

    public static void main(String[] args) {
        synchronized (SynchronizedTest.class){
            a = 2;
            System.out.println(a);
        }
    }

}
